package com.googlecode.gwtbb.client.shared.remote.search;

import com.googlecode.gwtbb.client.shared.entity.forum.Post;
import com.googlecode.gwtbb.client.shared.remote.ClientResponse;
import com.googlecode.gwtbb.client.shared.remote.forum.PostsEvent;

import java.util.List;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Jul 29, 2008
 */
public class SearchPostsResponse extends ClientResponse implements PostsEvent, SearchResults<Post> {
	private List<Post> results;
	private String queryString;
	private int maxNumResults;
	private int numTotal;
	private int rank;

	public int getMaxNumResults() {
		return maxNumResults;
	}

	public void setMaxNumResults(int maxNumResults) {
		this.maxNumResults = maxNumResults;
	}

	public int getNumTotal() {
		return numTotal;
	}

	public void setNumTotal(int numTotal) {
		this.numTotal = numTotal;
	}

	public String getQueryString() {
		return queryString;
	}

	public void setQueryString(String queryString) {
		this.queryString = queryString;
	}

	public int getRank() {
		return rank;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public List<Post> getResults() {
		return results;
	}

	public void setResults(List<Post> results) {
		this.results = results;
	}

	public List<Post> getPosts() {
		return results;
	}
}
